package jvm;

import java.util.UUID;

/**
 * @Author:ycz
 * @date:2021/7/20
 */
public class Test5 {

    public static void main(String[] args) {
        System.out.println(A5.str);
    }

}

class A5{
    // 需要初始化
    public static final String str = UUID.randomUUID().toString();
    static {
        // 所以这里也会打印出来
        System.out.println("this is A class");
    }
}
